package com.winsdom.mapper;

import com.winsdom.entity.BillingConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.winsdom.vo.contract.BillingConfigVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 合同计费配置表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2025-05-12
 */
@Mapper
public interface BillingConfigMapper extends BaseMapper<BillingConfig> {
    /**
     * 获取合同的计费配置，关联费项信息
     */
    List<BillingConfig> selectBillingConfigsWithExpenditure(
            @Param("contractIds") Set<Long> contractIds,
            @Param("natures") List<Integer> natures,
            @Param("status") Integer status);

    List<BillingConfigVo> selectForBillingConfig(@Param("contractId") Long contractId);
}
